import router from "./index";
router.beforeEach((to)=>{    
        //未登录
        if(to.path==="/"){
            return {path:"/login"}
        }
})